﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using static System.Windows.Forms.ComboBox;

namespace ComboBoxExpand
{
    public static class Extension
    {
        public static int ContainsExtension(this ObjectCollection objcoll, object value)
        {
            for (int i = 0; i < objcoll.Count; i++)
            {
                if (objcoll[i].ToString() == value.ToString())
                    return i;
            }
            return -1;
        }
    }
}
